﻿using Basic.FormRemoteModel.Page.Model;
using Basic.FormRemoteModel.PageBody.Model;
using WeDonekRpc.Client;
using WeDonekRpc.HttpApiGateway.Model;

namespace Basic.FormGatewaryModular.Interface
{
    public interface ICustomPageService
    {
        PageControlDto GetLayout ( long layoutId, bool isEdit );
        void AddPower ( long id, PageAppPower power );
        void Enable ( long id );
        void Disable ( long id );

        PageBodyDto GetBody ( long id, bool isEdit );

        long Add ( PageAdd add );

        void Delete ( long id );

        PageDatum Get ( long id );

        PagingResult<PageDatum> Query ( PagingParam<PageQueryParam> query );

        bool Set ( long id, PageSet set );
        PageAppPower GetPower ( long id );
    }
}